package com.youlai.system.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @version 1.0
 * @Author zzps
 * @Date 2024/3/11 21:04
 * @注释
 */
@Schema(description ="商品分类树形数据对象")
@Data
public class CategoryTreeVo {
    @Schema(description="分类ID")
    private Long id;

    @Schema(description="父级分类ID")
    private Long parentId;

    @Schema(description="分类名称")
    private String name;

    @Schema(description = "子分类")
    private List<CategoryTreeVo> children;
}
